[gd_scene load_steps=11 format=3 uid="uid://cjhnwyawaq2gb"]

[ext_resource type="Script" path="res://scripts/pipe.gd" id="1_iufsf"]
[ext_resource type="Texture2D" uid="uid://ge63xm86nigf" path="res://assets/pipe_texture.png" id="2_i7js5"]
[ext_resource type="Texture2D" uid="uid://bho3c2t6gbd5r" path="res://assets/coins.png" id="3_1jq8r"]
[ext_resource type="Script" path="res://scripts/coin.gd" id="3_m87qj"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_14l55"]
size = Vector2(128, 504)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_5b6f4"]
size = Vector2(128, 504)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_wfxka"]
size = Vector2(56, 191)

[sub_resource type="Animation" id="Animation_eh3y4"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Coins:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}

[sub_resource type="Animation" id="Animation_uffpd"]
resource_name = "idle"
length = 0.4
loop_mode = 1
step = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Coins:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_edskg"]
_data = {
"RESET": SubResource("Animation_eh3y4"),
"idle": SubResource("Animation_uffpd")
}

[node name="pipe" type="Node2D"]
script = ExtResource("1_iufsf")

[node name="bottom_pipe" type="Area2D" parent="."]
position = Vector2(0, 352)

[node name="PipeTexture" type="Sprite2D" parent="bottom_pipe"]
texture_filter = 1
texture = ExtResource("2_i7js5")

[node name="CollisionShape2D" type="CollisionShape2D" parent="bottom_pipe"]
position = Vector2(0, 4)
shape = SubResource("RectangleShape2D_14l55")

[node name="top_pipe" type="Area2D" parent="."]
position = Vector2(0, -351)

[node name="PipeTexture" type="Sprite2D" parent="top_pipe"]
texture_filter = 1
scale = Vector2(1, -1)
texture = ExtResource("2_i7js5")

[node name="CollisionShape2D" type="CollisionShape2D" parent="top_pipe"]
position = Vector2(0, -4)
shape = SubResource("RectangleShape2D_5b6f4")

[node name="coin" type="Area2D" parent="."]
script = ExtResource("3_m87qj")

[node name="Coins" type="Sprite2D" parent="coin"]
texture = ExtResource("3_1jq8r")
hframes = 4

[node name="hitbox" type="CollisionShape2D" parent="coin"]
position = Vector2(0, 0.5)
shape = SubResource("RectangleShape2D_wfxka")

[node name="AnimationPlayer" type="AnimationPlayer" parent="coin"]
libraries = {
"": SubResource("AnimationLibrary_edskg")
}
autoplay = "idle"
